import java.util.Date;

public class Player {
	int level;
	int id;
	String steam;
	public String nick;
	String inick;
	String q;
	String vote;
	public boolean medic;
	public boolean cap;
	long active;
	boolean admin;
	Player (int id,String steam,String nick,String inick,String q) {
		admin = false;
		this.id = id;
		this.steam = steam;
		this.nick = nick;
		this.inick = inick;
		this.q = q;
		medic = false;
		cap = false;
		Date date = new Date();
		active = date.getTime();
	}
	Player (int id,String steam,String nick,String inick,String q,boolean admin,int level) {
		this.level = level;
		this.admin = admin;
		this.id = id;
		this.steam = steam;
		this.nick = nick;
		this.inick = inick;
		this.q = q;
		medic = false;
		cap = false;
		Date date = new Date();
		active = date.getTime();
	}
	boolean equals (String nick) {
		return inick.equals(nick);
	}
	boolean afk() {
		Date date = new Date();
		return (date.getTime() - active > 300000);
	}
	public String toString() {
		return nick;
	}
	public String getInick() {
		return inick;
	}
	public void SetInick(String inick) {
		this.inick = inick;
	}
	public void setVote(String vote) {
		this.vote = vote;	
	}
	public String getVote() {
		return this.vote;
	}
}
